﻿using System.Collections.Generic;
using HiTeachers.Data.Manager;
using HiTeachers.Entities;
using HiTeachers.Interfaces;

namespace HiTeachers.Services
{
    public class SubjectServices
    {
        //private static readonly ISubjectDao SubjectDao = NHibernateDaoFactory.Instance.GetDao<ISubjectDao>("subject");
        private static readonly ISubjectDao SubjectDao = NHibernateDaoFactory.Instance.GetSubjectDao();

        public static Subject GetById(short subId)
        {
            return SubjectDao.GetById(subId, false);
        }

        public static IList<Subject> GetSubjects(string subjectIds)
        {
            return SubjectDao.GetSubjects(subjectIds);
        }

        public static IList<Subject> FindAll()
        {
            return SubjectDao.GetAll();
        }
    }
}
